package com.bytenebula.asteroid.entity;

import com.mybatisflex.annotation.Table;

import java.io.Serial;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;

/**
 *  实体类。
 *
 * @author patrick
 * @since 2024-09-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(value = "meta_database", dataSource = "bytenebula")
public class MetaDatabase extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    private String friendlyName;
    private Integer projectId;
    private String dbName;
    private String dbType;
    private Integer ownerId;
    private String hostName;
    private Integer port;
    private String userName;
    private String password;
    private String jdbcParams;
    private String comment;
}
